export default function myPlugin() {
  return {
    name: 'configure-server',
    configureServer(server) {
      server.middlewares.use((req, res, next) => {
        if (req.url === '/') {
          console.log('=================', req.headers);
        }
        next();
      })
    }
  }
}